package com.yellowpage.omc.datacollect.data;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.SEQUENCE;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

/**
 * DataCollectImportLog entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "OMC_DATA_COLLECT_IMPORT_LOG")
public class DataCollectImportLog implements java.io.Serializable {

	// Fields

	private Long importLogId;
	private Long dataCollectId;
	private Long dataCollectBatchId;
	private Long seq;
	private String event;
	private String content;
	private Long createUser;
	private Date createTime;

	// Constructors

	/** default constructor */
	public DataCollectImportLog() {
	}

	/** full constructor */
	public DataCollectImportLog(Long dataCollectId, Long dataCollectBatchId,
			Long seq, String event, String content, Long createUser,
			Date createTime) {
		this.dataCollectId = dataCollectId;
		this.dataCollectBatchId = dataCollectBatchId;
		this.seq = seq;
		this.event = event;
		this.content = content;
		this.createUser = createUser;
		this.createTime = createTime;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "identity")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "IMPORT_LOG_ID", unique = true, nullable = false, precision = 18, scale = 0)
	public Long getImportLogId() {
		return this.importLogId;
	}

	public void setImportLogId(Long importLogId) {
		this.importLogId = importLogId;
	}

	@Column(name = "DATA_COLLECT_ID", precision = 18, scale = 0)
	public Long getDataCollectId() {
		return this.dataCollectId;
	}

	public void setDataCollectId(Long dataCollectId) {
		this.dataCollectId = dataCollectId;
	}

	@Column(name = "DATA_COLLECT_BATCH_ID", precision = 18, scale = 0)
	public Long getDataCollectBatchId() {
		return this.dataCollectBatchId;
	}

	public void setDataCollectBatchId(Long dataCollectBatchId) {
		this.dataCollectBatchId = dataCollectBatchId;
	}

	@Column(name = "SEQ", precision = 18, scale = 0)
	public Long getSeq() {
		return this.seq;
	}

	public void setSeq(Long seq) {
		this.seq = seq;
	}

	@Column(name = "EVENT", length = 128)
	public String getEvent() {
		return this.event;
	}

	public void setEvent(String event) {
		this.event = event;
	}

	@Column(name = "CONTENT", length = 16)
	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Column(name = "CREATE_USER", precision = 18, scale = 0)
	public Long getCreateUser() {
		return this.createUser;
	}

	public void setCreateUser(Long createUser) {
		this.createUser = createUser;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_TIME", length = 7)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}